<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <main id="main">
 *
 * @package tiffanyturnham
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">
	   
	    jQuery(window).load(function($){
	      jQuery('.flexslider').flexslider({
	        animation: "slide",
	        animationLoop: false,
	        itemWidth: 150,
	        itemMargin: 5,
	        move: 0,
	        minItems: 1,
	        maxItems: 3,
	        start: function(slider){
	          jQuery('body').removeClass('loading');
	        }
	      });
	    });
	  </script>
<?php wp_head(); ?>
</head>

<body <?php body_class(); ?>>
<div class="wrapper"><!--[start:wrapper]-->
	<div class="container"><!--[start:container]-->
		<div id="page" class="hfeed site">
			<?php do_action( 'before' ); ?>
			<div class="navbar"><!--[start:navbar]-->
				<div class="sixteen columns">
					<div class="headline-navbar">
						<div class="eight alpha columns"><p>
						<?php 
						global $NHP_Options;
						$foot = $NHP_Options->get('promo_text');
						echo $foot;
						?>
						</p></div>
					</div>	
					<div class="link-navbar">
						<div class="eight columns omega">
							<?php wp_nav_menu( array( 'theme_location' => 'top' ) ); ?><div class="clear"></div>	
						</div>
					</div><div class="clear"></div>	
				</div>
			</div><!--[end:navbar]-->
			<header id="masthead" class="site-header" role="banner"><!--[start:header]-->
				<div class="sixteen columns">
					<div class="logo"><!--[start:logo]-->
						<div class="seven columns alpha">
							<?php
								global $NHP_Options;
								$logo = $NHP_Options->get('img_logo');
								//print_r($options_array);
								if ( $logo ) : 
							?>
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><img src="<?php echo $logo; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"></a>
							<?php else : ?>
							<hgroup class="identity">
								<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
								<h4><?php bloginfo( 'description' ); ?></h4>
							</hgroup>
							<?php endif; ?>
						</div>
					</div><!--[end:logo]-->
					<div class="socialmedia"><!--[start:socialmedia]-->
					<div class="four columns omega">
						<ul>
							<li><a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" alt="twitter"/></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="facebook"/></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/google-plus.png" alt="google plus"/></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/linkedln.png" alt="linkedln"/></a></li>
							<li><a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/feed.png" alt="feed"/></a></li>
						</ul><div class="clear"></div>	
					</div>
					</div><div class="clear"></div><!--[end:socialmedia]-->
					<div class="cart">
						<div class="three columns">
						<?php global $woocommerce; ?>
 
						<a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a>

						</div>
					</div><div class="clear"></div>
					<nav id="site-navigation" class="main-navigation" role="navigation">
						<h1 class="menu-toggle"><?php _e( 'Menu', 'tiffanyturnham' ); ?></h1>
						<div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'tiffanyturnham' ); ?>"><?php _e( 'Skip to content', 'tiffanyturnham' ); ?></a></div>

						<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
					</nav><!-- #site-navigation -->
				</div>	
			</header><!--[end:header]-->
			<div id="content" class="site-content">